package cn.lhl.FIlter;

import cn.lhl.util.HibernateUtil;

import javax.servlet.*;
import java.io.IOException;
import java.util.logging.LogRecord;

/**
 * Created by datou on 2017/1/19.
 */
public class FIlter implements Filter{

    public void init(FilterConfig filterConfig) throws ServletException {
    }

    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        filterChain.doFilter(servletRequest,servletResponse);
        HibernateUtil.close();
        

    }

    public void destroy() {
    }
}
